import Mock from "mockjs";

Mock.mock("/getMiao", () => {
  return Mock.mock({
    "list|4": [
      {
        shijian: '@DATETIME("HH:mm")',
        id: "@id",
        "miaosha|1": ["以开抢", "抢购进行中", "即将开场"],
        "children|4": [
          {
            img: "@image(120x120,@color)",
            "price|50-100": 1,
            id: "@id",
            title: "@ctitle(4)",
          },
        ],
        "liebiao|10": [
          {
            img: "@image(200x200,@color)",
            title: "@ctitle(35)",
            "price|100-1000": 1,
            id: "@id",
            "num|1-100": 1,
            shopnum: 1,
            flag: false,
            www: "@ctitle(6,8)",
            allprice: 0,
          },
        ],
      },
    ],
  });
});
Mock.mock("/getpingjia", () => {
  return Mock.mock({
    "list|10": [
      {
        touxiang: "@image(30x30,@color)",
        user: "@ctitle(2,5)",
        say: "@cword(40)",
        img: "@image(100x100,@color)",
        zhuijia: "@cword(10,18)",
        id: "@id",
      },
    ],
  });
});
